package ClassDay1.service.imple;

import ClassDay1.dao.Dao;
import ClassDay1.dao.impile.AppDao;
import ClassDay1.service.Service;

public class AppService implements Service {
    private Dao A;
    public void save(){
        System.out.println("AppService Run");
        System.out.println(A);
        A.save();
    }
    //构造方法可以被Spring调用，但仅限于无参构造

    public AppService()
    {
        System.out.println("APP程序构造开始");
    }
    public void setA(Dao a) {
        this.A = a;
    }
}
